package imgshare.common.event;

import imgshare.model.Notification;
import org.springframework.context.ApplicationEvent;

public class ServerAnnouncementCreatedEvent extends ApplicationEvent {

    private final Notification notification;

    public Notification getNotification() {
        return notification;
    }

    public ServerAnnouncementCreatedEvent(Object source,Notification notification) {
        super(source);
        this.notification = notification;
    }
}
